package com.itheima.pojo;

import java.util.Objects;

public class QueryVO {
    private User user;
    private Integer age;
    private Integer startIndex;
    private Integer pageSize;

    public QueryVO() {
    }

    public QueryVO(User user, Integer age, Integer startIndex, Integer pageSize) {
        this.user = user;
        this.age = age;
        this.startIndex = startIndex;
        this.pageSize = pageSize;
    }

    public User getUser() {

        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Integer getStartIndex() {
        return startIndex;
    }

    public void setStartIndex(Integer startIndex) {
        this.startIndex = startIndex;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "QueryVO{" +
                "user=" + user +
                ", age=" + age +
                ", startIndex=" + startIndex +
                ", pageSize=" + pageSize +
                '}';
    }
}
